//**********************************************************
//    File Name: MainMenu.cs
//    Author: Team Motif
//    Date Created : 04/13/2007
//    Current Owner: Team Motif 
//                                                                            
//    Purpose: 
//    To display the main menu of the application.
//
//	  Copyright 2007
//**********************************************************
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data.OleDb;


namespace Elderhealth
{
    /// <summary>
    /// List of forms that can be accessed via main menu.
    /// </summary>
    public enum ElderHealthFormType
    {
        ChartForm,
        ClientSearchForm,
        CreateClientScheduleForm,
        HCWSearchForm,
        ViewAppointmentForm,
        ViewClientForm,
        ViewHCWScheduleProfileForm,
        MainMenuForm
    }

    public partial class MainMenu : Form
    {
        /// <summary>
        /// Default constructor.
        /// </summary>
        public MainMenu()
        {
            InitializeComponent();
        }


        /// <summary>
        /// Display form for creating schedule for the Client.
        /// </summary>
        private void button4_Click(object sender, EventArgs e)
        {
            FrmClientSearch frm = new FrmClientSearch(ElderHealthFormType.CreateClientScheduleForm);
            frm.Show();
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        private void Exit_Click(object sender, EventArgs e)
        {
            Dispose(); 
        }

        /// <summary>
        /// Display the form for searching Home Care Worker.
        /// </summary>
        private void button3_Click(object sender, EventArgs e)
        {
            FrmHCWSearch frm = new FrmHCWSearch();
            frm.Show();
            
        }

        /// <summary>
        /// Exit the application.
        /// </summary>
        private void Exit_Click_1(object sender, EventArgs e)
        {
            Application.Exit();
        }

        /// <summary>
        /// Display the form for viewing the appointments.
        /// </summary>
        private void ViewAppointment_Click(object sender, EventArgs e)
        {
            FrmViewAppointments frm = new FrmViewAppointments();
            frm.Show();
        }

        /// <summary>
        /// Display the form for viewing and updating Client information.
        /// </summary>
        private void ClientData_Click(object sender, EventArgs e)
        {
            FrmClientSearch frm = new FrmClientSearch(ElderHealthFormType.ViewClientForm);
            frm.Show();
        }

        private void MainMenu_Load(object sender, EventArgs e)
        {

        }
        
    }
}